<template>
  <div>
    <div class="container" v-if="myData !== null">
      <hr />
      <el-table
        border
        :data="myData.responseAreditorBookOrderDetailList"
        style="width: 100%"
      >
        <el-table-column align="center" prop="orderNo" label="订单编号">
        </el-table-column>
        <el-table-column
          align="center"
          prop="resourceName"
          label="图书名称"
          width="140"
        >
        </el-table-column>
        <el-table-column
          align="center"
          prop="resourcePrice"
          width="110"
          label="订单金额"
        >
          <template slot-scope="scope">
            ￥{{ scope.row.resourcePrice }}
          </template>
        </el-table-column>
      </el-table>
    </div>
  </div>
</template>

<script>
export default {
  name: "Total",
  props: ["myData", "resourceTotal"],
};
</script>

<style scoped>
hr {
  margin-top: 20px;
  width: 600px;
}
.container {
  width: 600px;
  margin: 25px auto;
}
</style>
